package vis;

import logic.PlayfairCipher;

public class PrepChecker implements TextChecker {

	private PlayfairCipher cipher = null;
	
	public PrepChecker(PlayfairCipher cipher)
	{
		this.cipher = cipher;
	}
	
	@Override
	public String getCorrect(String input) {
		input = cipher.sanitizeString(input);
		input = cipher.getLanguage().doMappings(input);
		return input;
	}

}
